package com.ciaojian.core.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ciaojian.core.model.WorkerApply;
import com.ciaojian.core.model.dto.WorkerApplyDTO;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * <p>
 * 员工申请表 Mapper 接口
 * </p>
 *
 * @author Atlakyn
 * @since 2021-06-09
 */
public interface WorkerApplyMapper extends BaseMapper<WorkerApply> {
    /**
     * 按状态和门店查询申请列表(包含详情)
     *
     * @param page   分页插件
     * @param params 参数
     * @return 申请列表
     */
    @MapKey("id")
    Page<Map<String, Object>> listContainLeaveDetail(Page<Map<String, Object>> page,
                                                     @Param("params") WorkerApplyDTO params);

}
